<layout name="layout" />

<script src="__CDN__/Scripts/PSI/Supplier/MainForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Supplier/CategoryEditForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Supplier/SupplierEditForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>

<!-- 关联商品 -->
<script src="__CDN__/Scripts/PSI/Goods/GoodsCategoryField.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Supplier/GRCategoryEditForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Supplier/GRGoodsEditForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Goods/GoodsField.js?dt={$Think.config.site.version}" type="text/javascript"></script>

<script>
  Ext.onReady(function () {
    PSI.Const.PROD_NAME = "{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'}";

    var app = Ext.create("PSI.App", {
      userName: "{$admin.username}",
      productionName: "{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'}"
    });

    app.add(Ext.create("PSI.Supplier.MainForm", {
      pAddCategory: "{$pAddCategory}",
      pEditCategory: "{$pEditCategory}",
      pDeleteCategory: "{$pDeleteCategory}",
      pAddSupplier: "{$pAddSupplier}",
      pEditSupplier: "{$pEditSupplier}",
      pDeleteSupplier: "{$pDeleteSupplier}"
    }));
    app.setAppHeader({
      title: "{$title}",
      iconCls: "PSI-fid1004"
    });
  });
</script>
